package MVCEX1BT5;

public class Models {
	
	public boolean CheckRegistration(Object obj){
		if(obj.getGender().equalsIgnoreCase("nam")&&
				obj.getAge()>=22&&
					!obj.getStatus().equalsIgnoreCase("hon nhan")){return true;}
		if(obj.getGender().equalsIgnoreCase("nu")&&
				obj.getAge()>=19&&
					!obj.getStatus().equalsIgnoreCase("hon nhan")){return true;}
		return false;
	}
}
